package com.nebula.salary.model.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 角色信息前端显示类
 *
 * @author codex
 * @since 2022-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RoleVo对象", description = "角色信息前端显示类")
public class RoleVo implements Serializable {
    private static final long serialVersionUID = 5993797831654785490L;
    
    @ApiModelProperty(value = "权限ID")
    private Integer roleId;
    
    @ApiModelProperty(value = "权限名称")
    private String roleName;
    
    @ApiModelProperty(value = "权限描述")
    private String instruction;
    
    @ApiModelProperty(value = "SpringSecurity对应的权限")
    private String roleSecurity;
    
    @ApiModelProperty(value = "权限级别 0-超级管理员 1-管理员 2-普通用户")
    private Integer roleLevel;
    
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
}
